Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add slide animation for ActionPanel #110

Merged
merged 8 commits into from
Feb 1, 2024
Merged

Conversation

flops
Copy link
Collaborator

@flops flops commented Jan 26, 2024

Animations example:

Screen.Recording.2024-01-30.at.21.46.12.mov

@gravity-ui-bot
Copy link
Contributor

Preview is ready.


React.useEffect(() => {
if (!enable) {
element?.removeEventListener('transitionend', transitionHandler);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it looks strange because you remove listeners not inside useEffect return function

@jhoncool
Copy link
Collaborator

@flops in general you can use react-transition-group because uikit use it

@flops flops force-pushed the animated-action-panel branch from b0fc692 to a1955c6 Compare January 29, 2024 16:23
@flops flops added enhancement New feature or request and removed work in progress labels Jan 30, 2024
@flops flops requested a review from jhoncool January 30, 2024 19:00
@@ -325,6 +325,29 @@ type MenuItem = {
DashKit.setSettings({menu: [] as Array<MenuItem>});
```

| Name | Description |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some caption? Like CSS Api. And would be good to add some recommendations how to use it.

@flops flops removed the request for review from Marginy605 February 1, 2024 10:56
@flops flops added this pull request to the merge queue Feb 1, 2024
Merged via the queue into main with commit d7e9f9b Feb 1, 2024
3 checks passed
@flops flops deleted the animated-action-panel branch February 1, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants